<{include file="top.tpl"}>
<{if $webstate==1}><!--是否关闭系统-->
<center>
<div class="messagebox">
  <div class="messagebox-title">用户协议</div>
  <div class="messagebox-content">
    <{$regagree}>
    <div align="center">
    <form name="aform" method="post" action="/<{$virdir}>reg.php/act/agree">
      <input name="agreesubmit" type="submit" id="agree" value=" 我同意 " class="button" /> &nbsp;
      <input type="button" name="return" value=" 我不同意 " onclick="javascript:history.go(-1);" class="button" />
    </form>
    </div>
  </div>
</div>
</center>
<script type="text/javascript" language="javascript">
var secs = 9;
var wait = secs * 1000;
var agreetext=" 我同意 ";
document.aform.agreesubmit.value = agreetext+"(" + secs + ") ";
document.aform.agreesubmit.disabled = true;
for(i = 1; i <= secs; i++) {
  window.setTimeout("update(" + i + ")", i * 1000);
}
window.setTimeout("timer()", wait);
function update(num, value) {
  if(num == (wait/1000)) {
    document.aform.agreesubmit.value = agreetext;
  } else {
    printnr = (wait / 1000)-num;
    document.aform.agreesubmit.value = agreetext+"(" + printnr + ") ";
  }
}
function timer() {
  document.aform.agreesubmit.disabled = false;
  document.aform.agreesubmit.value = agreetext;
}
</script>

<{/if}><!--是否关闭系统-->
<{include file="foot.tpl"}>